@echo off

IF EXIST C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe GOTO INSTALL64

:INSTALL32
ECHO Installing with 32bit msbuild process
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Deployment.msbuild /target:Redeploy /logger:FileLogger,Microsoft.Build.Engine;logfile=Deployment.log;Verbosity=diagnostic /nologo /verbosity:normal

GOTO FINISHED

:INSTALL64
ECHO Installing with 64bit msbuild process
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe Deployment.msbuild /target:Redeploy /logger:FileLogger,Microsoft.Build.Engine;logfile=Deployment.log;Verbosity=diagnostic /nologo /verbosity:normal

:FINISHED
ECHO.
ECHO Press any key to continue
ECHO.

pause >nul

@ECHO off